python dealing with none

welcome to shbcf.ru